package com.lxf.cloudscheduled.mapper;

import com.lxf.cloudscheduled.bean.TaskBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 罗兴发
 * @data 2025/6/9 14:31
 * @description：任务添加-持久层
 */
@Mapper
public interface ScheduledTaskMapper {
    List<TaskBean> getAllTask();

    int updateTaskIsMsg(@Param("tId") Integer tId,
                         @Param("isMsg") Integer isMsg);

    int deleteTaskByMsgStatus(@Param("isMsg") Integer isMsg);
}
